From 91b0f0040ea4e3766020b938db5bce1ed4cc9b51 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 16 Aug 2005 19:38:22 +0000 Subject: [PATCH] Really randomise MAC addresses for multi-VIF guests. Reseeding on every VIF doesn;t work as timeofday doesn't change quickly enough. Signed-off-by: Jim Dykman Signed-off-by: Keir Fraser --- tools/python/xen/xm/create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 72aa2a3f63..1d37f222ed 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -380,7 +380,6 @@ def randomMAC(): @return: MAC address string """ - random.seed() mac = [ 0xaa, 0x00, 0x00, random.randint(0x00, 0x7f), random.randint(0x00, 0xff), @@ -689,6 +688,7 @@ def balloon_out(dom0_min_mem, opts): del xc def main(argv): + random.seed() opts = gopts args = opts.parse(argv) if opts.vals.help: -- 2.30.2